import {defineStore} from 'pinia'

type ThemeStore = {
    color: string;
}

export const useThemeStore = defineStore("themeColor", {
    state: (): ThemeStore => {
        return {
            color: "linear-gradient(to right, #ec77ab 0%, #7873f5 100%)"
        };
    },
    persist:true,
    actions: {
        getColor() {
            return this.color
        },
        setColor(color: string) {
            this.color = color
        }
    },
})
